package com.jty.lib_base.room.dao

import androidx.room.*
import com.jty.lib_base.room.bean.CoordinateKill

@Dao
interface CoordinateKillDao {
    @Query("SELECT * FROM COORDINATE_KILL")
    fun getAll(): List<CoordinateKill>

    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insert(coordinateKill: CoordinateKill)

    @Delete
    fun delete(coordinateKill: CoordinateKill)

    @Delete
    fun deleteAll(vararg coordinateKills: CoordinateKill)

    @Query("DELETE FROM COORDINATE_KILL")
    fun deleteAll()


    @Update
    fun updateCoordinateKill(vararg coordinateKills: CoordinateKill)

}